package com.xjj.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjj.entity.Vote;
import com.xjj.vo.VoteVo;

/**
 * @author GH
 * @date 2022/10/20 10:36
 */
public interface VoteService extends IService<Vote> {
    void cancelVote(Integer voteId);

    Page<Vote> getVotes(Integer klassId , Integer current);

    void addVote(VoteVo voteVo);

    Vote getDetailsById(Integer id);

    void deleteById(Integer voteId);

    boolean voteTimeOut(Integer voteId);
}
